package com.zy.cat.entity.game;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫水果机，奖品列表
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_fruit_prince_info", indexes = {
		@Index(name = "fpid", columnList = "fpid"),
		@Index(name = "ptype", columnList = "ptype"),
		@Index(name = "ttype", columnList = "ttype"),
		@Index(name = "pstatus", columnList = "pstatus"),
		@Index(name = "ltime", columnList = "ltime"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫水果机，奖品列表")
public class FruitPrinceInfo {
	
	@Id
	@Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '奖品ID[9趣猫水果机，奖品列表]'")
	@ApiModelProperty(value = "奖品ID", example = "fe53d6a4fa29641")
	private String fpid=UUID.randomUUID().toString().replace("-", "");
	
	@Column(columnDefinition = "VARCHAR(10) NOT NULL  COMMENT '奖品名称'")
	@ApiModelProperty(value = "奖品名称", example = "优酷会员1个月")
	private String pname;
	
	@Column(columnDefinition = "VARCHAR(200) NOT NULL  COMMENT '奖品图片'")
	@ApiModelProperty(value = "奖品图片", example = "https://")
	private String pimg;
	
	@Column(columnDefinition = "VARCHAR(10) DEFAULT '0'  COMMENT '奖品现价'")
	@ApiModelProperty(value = "奖品现价", example = "200")
	private String pprice;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '奖品类型（0.金币、1.物品）'")
	@ApiModelProperty(value = "奖品类型（0.金币、1.物品）", example = "0")
	private int ptype;
	
	@Column(columnDefinition = "INT(2) DEFAULT '1' COMMENT '奖品数量'")
	@ApiModelProperty(value = "奖品数量", example = "1")
	private int pcount;
	
	@Column(columnDefinition = "INT(1) DEFAULT '0' COMMENT '游戏条件(0.使用代币、1.观看广告)'")
	@ApiModelProperty(value = "游戏条件(0.使用代币、1.观看广告)", example = "0")
	private int ttype;
	
	@Column(columnDefinition = "INT(3) DEFAULT '3' COMMENT '价值（代币/广告次数'")
	@ApiModelProperty(value = "价值（代币/广告次数）", example = "3")
	private int dcoin;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '奖品状态（-1.下线、0.审核中、1.上线）'")
	@ApiModelProperty(value = "奖品状态（-1.下线、0.审核中、1.上线）", example = "0")
	private int pstatus;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 10:10:10")
	private String ctime;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 10:10:10")
	private String ltime;
	
	public FruitPrinceInfo(String fpid) {
		this.fpid=fpid;
	}

}
